import Layout from '@/layout/basic/index'

export default [
  {
    path: '/login',
    name: '登录页',
    component: () => import(/* webpackChunkName: "layout" */ '@/layout/tenant/login'),
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/s-login',
    name: '供应商登录页',
    component: () => import(/* webpackChunkName: "layout" */ '@/layout/supplier/login'),
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/register',
    name: '供应商注册',
    component: () => import(/* webpackChunkName: "layout" */ '@/layout/supplier/register'),
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/lock',
    name: '锁屏页',
    component: () => import(/* webpackChunkName: "layout" */ '@/layout/basic/lock'),
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "base" */ '@/components/base/404'),
    name: '404',
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/403',
    component: () => import(/* webpackChunkName: "base" */ '@/components/base/403'),
    name: '403',
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  {
    path: '/500',
    component: () => import(/* webpackChunkName: "base" */ '@/components/base/500'),
    name: '500',
    meta: { keepAlive: true, isTab: false, isAuth: false }
  },
  { path: '/', name: '主页', redirect: '/wel' },
  {
    path: '/myiframe',
    component: Layout,
    redirect: '/myiframe',
    children: [
      {
        path: ':routerPath',
        name: 'iframe',
        component: () => import(/* webpackChunkName: "base" */ '@/components/base/iframe'),
        props: true
      }
    ]
  },
  { path: '*', redirect: '/404' }
]
